<template>
  <el-dialog :modelValue="dialogTableVisible" @close="handleClose" :append-to-body="true">
    <slot name="valueBox"></slot>
  </el-dialog>
</template>

<script setup>
defineProps({
  dialogTableVisible: {
    type: Boolean,
    required: true,
  }
})
// 定义事件
const emit = defineEmits(['handleClose']);

function handleClose() {
  emit('handleClose');
}
</script>

<style lang="scss" scoped></style>
